x86/mm/p2m-pt: Clip mfn to allowable width when building a PTE
authorTim Deegan <tim@xen.org>
Thu, 29 Mar 2012 10:29:24 +0000 (11:29 +0100)
committerTim Deegan <tim@xen.org>
Thu, 29 Mar 2012 10:29:24 +0000 (11:29 +0100)
commit1fb4e798c6655dc84b7f5a52b1604ce42a4e7624
treec9f401bc0a1b9d17ef2c5a5004335c00c3cecb77
parentd5c1c62c19dbdaacaa680d7e72a10a37ef1444b6
x86/mm/p2m-pt: Clip mfn to allowable width when building a PTE

Otherwise, INVALID_MFN tramples over high order bits used for additional flags.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m-pt.c